<form action="/user/check" class="form-horizontal" role="form" method="post">
  <div class="form-group">
    <label for="inputEmail3" class="col-sm-2 control-label">Email</label>
    <div class="col-sm-2">
      <input type="email" class="form-control" id="email" name="email" placeholder="Email">
    </div>
  </div>
  <div class="form-group">
    <label for="inputPassword3" class="col-sm-2 control-label">Password</label>
    <div class="col-sm-2">
      <input type="password" class="form-control" id="password" name="password" placeholder="Password">
    </div>
  </div>
  <div class="form-group">
    <label for="verifycode" class="col-sm-2 control-label">VerifyCode</label>
    <div class="col-sm-1">
      <input type="text" class="form-control" id="verifycode" name="verifycode" placeholder="verifycode">
    </div>
    <button type="button" id="getVerifyCode" class="btn btn-default">Get VerifyCode</button>
  </div>
  <div class="form-group">
    <div class="col-sm-offset-2 col-sm-10">
      <button type="submit" class="btn btn-default">Sign in</button>
    </div>
  </div>
</form>
<script>
$("#getVerifyCode").click(function(){
  
  $.get("/user/sendvc","email=" + $("#email").val(),function(e){
           alert(e);
  });
});
</script>

